var gulp = require('gulp');
var shell = require('gulp-shell');

var nginx_server_conf_path = '/etc/nginx/default.d';
var nginx_reload_cmd = 'sudo systemctl reload nginx';
var nginx_server_conf_path_mac = '/usr/local/etc/nginx/default.d';
var nginx_reload_cmd_mac = 'sudo brew services restart nginx';

gulp.task('default', shell.task([
  'npm run dev'
]));

gulp.task('build', shell.task([
  'npm run build',
]));

gulp.task('deploy', shell.task([
  'npm run build',
  'sudo cp -rf ./dist/* /srv/http/zhjd/',
  'find . -type d -exec chmod +755 {} \\'
]));


